package com.goodomen.garbage.feign;

import com.goodomen.garbage.feign.client.GarbageWebClientFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HiService {

    private final GarbageWebClientFeign garageWebClientFeign;

    @Autowired
    public HiService(GarbageWebClientFeign garageWebClientFeign) {
        this.garageWebClientFeign = garageWebClientFeign;
    }

    public  String sayHi(String name){
        return garageWebClientFeign.sayHiFromClientEureka();
    }
}
